package service;


import java.util.List;
import java.util.Map;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;

import appmodel.OrderListParams;
import model.Order;

/**
 * 获取订单的service
 */
public abstract interface OrderService {

	public abstract List<Order> getOrderList(OrderListParams orderListParams);// 获取订单列表
	
	public abstract List<Order> getMyOrderList(OrderListParams orderListParams);// 获取我的订单列表
	
	public abstract List<Order> getUserOrderList(OrderListParams orderListParams);// 获取我的订单列表
	
	public abstract Order getOrderDetail(String orderId);// 获取订单详情

	public abstract void modifyOrderState(Map<String,Object> map);// 修改订单的状态

	public abstract long getOrderAllNumber(long userId);// 获取订单总数量
	
	public abstract long getOrderSuccessNumber(long userId);// 获取订单成功数量

	public abstract long getOrderFailNumber(long userId);// 获取订单失败数量
	
	public abstract long getOrderIngNumber(long userId);// 获取订单处理中数量
	
	public abstract int insert(Order order);//创建订单

	public abstract int cancelOrder(Order order);

	@SuppressWarnings("rawtypes")
	public abstract Map selectAll(PageBounds pageBounds, Map mapValue);

}
